<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>接口设置</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="./css/set_share.css">
    <style type="text/css">
        .layui-form-label {
            width: 100px;
        }

        .layui-upload-list {
            margin-left: 20px;
            margin-top: 10px;
        }

        .ptips1 {
            color: #999;
            font-size: 12px;
            padding-left: 130px;
            margin-top: 5px;
        }

        #demoText {
            margin-top: 5px;
        }

        #demoText2 {
            margin-top: 5px;
        }

        .layui-form-item {
            margin-top: 15px;
            margin-bottom: 0;
        }

        #uniocn {
            box-sizing: border-box;
            padding: 15px 100px;
        }
    </style>
</head>

<body>
<div id="uniocn" class="layui-layout layui-layout-admin">
    <div class="finance-title" style="background: #fff;padding-bottom: 0;border-bottom: 1px solid #1AB394">
        <button class="layui-btn layui-btn-ms">接口设置</button>
    </div>

    <div class="finance-modular">
        <form action="##" class="layui-form">
            <p style="box-sizing: border-box;padding: 10px;background: #F8F8F8;">接口设置</p>
            <div style="box-sizing: border-box;padding: 10px ;background: #fff">
                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 100px;">腾讯地图KEY</label>
                    <div class="layui-input-inline" style="width: 600px;">
                        <input name="title" type="text" required lay-verify="required" autocomplete="off"
                               class="layui-input" value="soaks-skck-solso">
                    </div>
                </div>
                <p class="ptips1">不填则调用系统默认KEY，为提高接口稳定性，建议自行填写</p>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 100px;">引导切换地区</label>
                    <div class="layui-input-inline" style="width: 300px;">
                        <input type="radio" name="set" value="开启" title="开启" checked>
                        <input type="radio" name="set" value="关闭" title="关闭">
                    </div>
                </div>
                <p class="ptips1">默认开启引导切换地区，如果单地区不建议开启</p>

                <div class="layui-form-item">
                    <label class="layui-form-label" style="width: 100px;">定位缓存时间</label>
                    <div class="layui-input-inline" style="width: 300px;">
                        <input name="time" type="text" required lay-verify="required" autocomplete="off"
                               class="layui-input" placeholder="分钟">
                    </div>
                </div>
                <p class="ptips1">不填默认缓存定位1分钟，可以根据实际情况调整缓存时间</p>
            </div>
            <button class="layui-btn" lay-submit="submit" lay-filter="formDemo" style="margin: 10px 10px 0px 0px">提交
            </button>
        </form>
    </div>

</div>

<script src="layui/layui.js"></script>
<script src="./js/jquery-3.2.1.min.js"></script>
<script src="./js/vue2.5.16.js"></script>
<script src="./js/public.js"></script>
<script src="js/data.js"></script>
<script>
    new Vue({
        el: "#uniocn",
        data: {
            header: data.header,
            side: data.side,
        }
    })

    layui.use(['form', 'upload'], function () {
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function (data) {
            console.log(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>

</html>